"ui";
//2019.4.2 11.45
ui.layout(
    <vertical>
            <horizontal>
                <img id="exit" src="file://./res/ic_keyboard_backspace_black_48dp.png" w="40" h="40" gravity="center"/>
                <text text="空间蓝色字体"  textColor="#333333" textSize="27sp" typeface="serif" gravity="top|center" w="*" textStyle="bold"/>
            </horizontal>
        <vertical padding="16">
            <text textSize="18sp" textColor="black" text="在下面的框框输入内容"/>
            <input id="input" singleLine="true" hint="在这里输入文字："/>
            <button id="ok" text="确定"/>
        </vertical>
    </vertical>
);
ui.exit.on("click", () => {
    ui.finish()
});
ui.ok.on("click", () => {
    let text = ui.input.text();
    if (text) {
        let txt = text.replace(/(,)|(\n)|({)|(})/g,"");
        toast("请到QQ粘贴说说");
        setClip("{uin:1314,nick:" + txt + ",who:1}");
    }
});